package com.zb.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 备件表
 * </p>
 *
 * @author WEN
 * @since 2023-08-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="ZjSpare对象", description="备件表")
public class ZjSpare implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主健ID")
    private Long id;

    @ApiModelProperty(value = "商家ID")
    private Long custAccId;

    @ApiModelProperty(value = "品牌ID")
    private Long brandId;

    @ApiModelProperty(value = "品牌名称")
    private String brand;

    @ApiModelProperty(value = "备件名称")
    private String name;

    @ApiModelProperty(value = "备件型号")
    private String model;

    @ApiModelProperty(value = "备件编码")
    private String code;

    @ApiModelProperty(value = "备件货号")
    private String itemNumber;

    @ApiModelProperty(value = "商品单位ID")
    private Long unitId;

    @ApiModelProperty(value = "商品单位")
    private String unit;

    @ApiModelProperty(value = "商品分类ID")
    private Long typeId;

    @ApiModelProperty(value = "商品分类名称")
    private String type;

    @ApiModelProperty(value = "备件来源：1-售后系统创建，2-excel导入，3-金蝶ERP导入，4-第三方接口创建")
    private Integer source;

    @ApiModelProperty(value = "备件供应商")
    private String supplier;

    @ApiModelProperty(value = "供应商联系方式")
    private String supplierTelephone;

    @ApiModelProperty(value = "禁用状态：0-正常，1-禁用")
    @TableField("is_disabled")
    private Boolean disabled;

    @ApiModelProperty(value = "删除状态：0-正常，1-删除")
    @TableField("is_deleted")
    private Boolean deleted;

    @ApiModelProperty(value = "创建人员ID")
    private Long createEmpId;

    @ApiModelProperty(value = "更新人员ID")
    private Long updateEmpId;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtUpdate;


}
